#ifndef CIMPOSITION_H
#define CIMPOSITION_H

#include <QPointF>
#include <QList>

class CImposition
{
 public:
    double  prWidth;
    double  prHeight;
    int     prTotal;
    int     prHNum;
    int     prVNum;
    QPointF startPoint;
    QList<QPointF> nextStartPoints;
public:
    CImposition();
    void operator = (const CImposition& imp)
    {
        this->prWidth = imp.prWidth;
        this->prHeight = imp.prHeight;
        this->prTotal = imp.prTotal;
        this->prHNum = imp.prHNum;
        this->prVNum = imp.prVNum;
        this->startPoint = imp.startPoint;
        //this->nextStartPoints = imp.nextStartPoints;
    }

    void setHVNum(int h, int v)
    {
        this->prHNum = h;
        this->prVNum = v;

        this->nextStartPoints.clear();

        QPointF next_point;
        next_point.setX(this->startPoint.x() + (this->prHNum * this->prWidth));
        next_point.setY(this->startPoint.y());
        this->nextStartPoints.push_back(next_point);

        next_point.setX(this->startPoint.x());
        next_point.setY(this->startPoint.y() + (this->prVNum * this->prHeight));
        this->nextStartPoints.push_back(next_point);
    }
};

#endif // CIMPOSITION_H
